package com.zrgk.bean;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 订单类，对应order_content
 * @author DHF
 *
 */
public class OrderBean implements Serializable{

	private static final long serialVersionUID = 1L;
	private int orderId;//订单id
	private EmpBean createMan;//订单生成人员
	private Date createDate;//订单生成时间
	private ConContentBean customer;//客户
	private String receiveName;//收货人姓名
	private String receivePhone;//收货人电话
	private String receiveAddress;//收货人地址
	private int paymentType;//付款方式0 货到付款1 转账汇款2 电邮
	private int transportType;//送货方式0 送货上门1 自提2 其它
	private int urgency;//订单缓急 0 普通订单 1 加急
	private int invoiceMsg;//发票信息0  公司  1  明细
	private BigDecimal cost;//订单费用
	private BigDecimal freightMoney;//运费
	private BigDecimal payAllMoney;//总费用
	private int state;//订单状态0 备货1 发货2 完成3 作废
	private String orderNumber;//订单编号
	private List<OrderItemBean> orderItems;//订单包含的所有订单明细
	
	
	public int getOrderId() {
		return orderId;
	}
	public void setOrderId(int orderId) {
		this.orderId = orderId;
	}
	public EmpBean getCreateMan() {
		return createMan;
	}
	public void setCreateMan(EmpBean createMan) {
		this.createMan = createMan;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public ConContentBean getCustomer() {
		return customer;
	}
	public void setCustomer(ConContentBean customer) {
		this.customer = customer;
	}
	public String getReceiveName() {
		return receiveName;
	}
	public void setReceiveName(String receiveName) {
		this.receiveName = receiveName;
	}
	public String getReceivePhone() {
		return receivePhone;
	}
	public void setReceivePhone(String receivePhone) {
		this.receivePhone = receivePhone;
	}
	public String getReceiveAddress() {
		return receiveAddress;
	}
	public void setReceiveAddress(String receiveAddress) {
		this.receiveAddress = receiveAddress;
	}
	public int getPaymentType() {
		return paymentType;
	}
	public void setPaymentType(int paymentType) {
		this.paymentType = paymentType;
	}
	public int getTransportType() {
		return transportType;
	}
	public void setTransportType(int transportType) {
		this.transportType = transportType;
	}
	public int getUrgency() {
		return urgency;
	}
	public void setUrgency(int urgency) {
		this.urgency = urgency;
	}
	public int getInvoiceMsg() {
		return invoiceMsg;
	}
	public void setInvoiceMsg(int invoiceMsg) {
		this.invoiceMsg = invoiceMsg;
	}
	public BigDecimal getCost() {
		return cost;
	}
	public void setCost(BigDecimal cost) {
		this.cost = cost;
	}
	public BigDecimal getFreightMoney() {
		return freightMoney;
	}
	public void setFreightMoney(BigDecimal freightMoney) {
		this.freightMoney = freightMoney;
	}
	public BigDecimal getPayAllMoney() {
		return payAllMoney;
	}
	public void setPayAllMoney(BigDecimal payAllMoney) {
		this.payAllMoney = payAllMoney;
	}
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
	public String getOrderNumber() {
		return orderNumber;
	}
	public void setOrderNumber(String orderNumber) {
		this.orderNumber = orderNumber;
	}
	
	public List<OrderItemBean> getOrderItems() {
		return orderItems;
	}
	public void setOrderItems(List<OrderItemBean> orderItems) {
		this.orderItems = orderItems;
	}
	public String toString() {
		return "OrderBean [orderId=" + orderId + ", createMan=" + createMan
				+ ", createDate=" + createDate + ", customer=" + customer
				+ ", receiveName=" + receiveName + ", receivePhone="
				+ receivePhone + ", receiveAddress=" + receiveAddress
				+ ", paymentType=" + paymentType + ", transportType="
				+ transportType + ", urgency=" + urgency + ", invoiceMsg="
				+ invoiceMsg + ", cost=" + cost + ", freightMoney="
				+ freightMoney + ", payAllMoney=" + payAllMoney + ", state="
				+ state + ", orderNumber=" + orderNumber + ", orderItems="
				+ orderItems + "]";
	}

}
